Skip to content

Conversation

toneill818
Copy link
Contributor

Description

Use the id of the s3 bucket or the directory bucket instead of the policy.

Motivation and Context

When attaching a policy after the bucket creation, any resource dependent on the output s3_bucket_id will show needing modified and possibly destroyed and recreated. This change will use the bucket resources directly to determine the bucket id instead of reading the policy first.

Breaking Changes

How Has This Been Tested?

  • [ No Changes ] I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • [ X ] I have tested and validated these changes using one or more of the provided examples/* projects
  • [ X ] I have executed pre-commit run -a on my pull request

@toneill818 toneill818 changed the title fix: pull bucket id from bucket resources fix: Pull bucket id from bucket resources Apr 24, 2025
@bryantbiggs bryantbiggs changed the title fix: Pull bucket id from bucket resources fix: Use correct bucket ID in s3_bucket_id output Jun 4, 2025
@bryantbiggs bryantbiggs changed the title fix: Use correct bucket ID in s3_bucket_id output fix: Include aws_s3_directory_bucket ID in s3_bucket_id output Jun 4, 2025
@bryantbiggs bryantbiggs merged commit 0d8fc54 into terraform-aws-modules:master Jun 4, 2025
21 checks passed
antonbabenko pushed a commit that referenced this pull request Jun 4, 2025
## [4.10.1](v4.10.0...v4.10.1) (2025-06-04)

### Bug Fixes

* Include `aws_s3_directory_bucket` ID in `s3_bucket_id` output ([#325](#325)) ([0d8fc54](0d8fc54))
@antonbabenko
Copy link
Member

This PR is included in version 4.10.1 🎉

Copy link

github-actions bot commented Jul 5, 2025

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants